//comp.js
export default {
    data: {
        value: "组件创建"
    },
    onInit() {
        console.log("组件创建")
    },
    onAttached() {
        this.value = "组件挂载"
    },
    onDetached() {
        this.value = ""
    },
    onPageShow() {
        console.log("Page显示")
    },
    onPageHide() {
        console.log("Page隐藏")
    }
}